package com.g4.shoppingsingle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.g4.shoppingsingle.pojo.DdOrderInfo;
import com.g4.shoppingsingle.vo.AddOrderVo;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author admin
 * @since 2021-10-27
 */
public interface IDdOrderInfoService extends IService<DdOrderInfo> {
        List<DdOrderInfo> getOrders(Integer userId);

    /**
     * 购物车添加订单
     * @param list
     */
    String cartAddOrder(List<AddOrderVo> list);

    /**
     * 立即选购添加订单
     * @param typeId
     * @param productId
     * @return
     */
    String addOrder(Integer typeId, Integer productId);
}
